import axios from '../../../utils/http.js'
export async function getData(currentPage, pageSize, filter) {
  const {
    data
  } = await axios.get('/cms/student/stuTeachPageData', {
    params: {
      currentPage: currentPage,
      pageSize: pageSize,
      ...filter
    }
  })
  return data
}

export async function getListData() {
  const {
    data
  } = await axios.get('/bac/college/departmentList')
  return data
}

export async function getListDataNew() {
  const {
    data
  } = await axios.get('/bac/major/getMajorList')
  return data
}

export async function getListDataNewOne() {
  const {
    data
  } = await axios.get('/bac/class/getClassList')
  return data
}
export async function resetPassWord(stunumber) {
  const {
    data
  } = await axios.patch('/cms/user/resetPas', [
    stunumber
  ])
  return data
}

// 学生状态更新
export function updateSpotStatus(data) {
  return axios.put('/cms/student/updateStatus', data)
}
